﻿using Abp.Application.Services;
using RMM.Cates.Dtos;
using Swashbuckle.Swagger.Annotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;

namespace RMM.Cates
{
    public interface ICateAppService : IApplicationService
    {
        /// <summary>
        /// 获取cate列表
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        [SwaggerResponse(HttpStatusCode.OK, Type = typeof(List<CateDto>))]
        Task<ResultDto> GetCateListAsync();

        /// <summary>
        /// 中文 拼音 检索
        /// </summary>
        /// <param name="chinese"></param>
        /// <returns></returns>
        [HttpGet]
        [SwaggerResponse(HttpStatusCode.OK, Type = typeof(List<CateDto>))]
        Task<ResultDto> GetCateByChinese(string chinese);
    }
}
